﻿<%@ Page Title="World of Art Deployment" Language="C#" MasterPageFile="~/Views/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Deployment.aspx.cs" Inherits="WorldOfArtWebApp.Views.Deployment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<p>
Deployment of the ASP.Net website, and the supporting SQL Server 2008 database, to WinHost was a straight forward, three step process. The account management control panel at WinHost has all the tutorials to walk you through the process. 
</p>
<p>
Step 1: Click on the Website menu in the Visual Studio 2010 menu bar and select copy website. This launches the copy website dialogue box. Click the connect button and select FTP Site. Enter the name of the FTP server along with your log in credentials. Then use the copy website dialogue box to copy your website to the ftp site. Once the file transfer is complete, select the application starting point from the WinHost account management control panel.
</p>
<p>
    <asp:Image ID="ImageCopyWebsite" runat="server"  CssClass="DeploymentImages"  ImageUrl="Images/CopyWebsite.JPG"/>


</p>

<p>
Step 2: Deploy the supporting SQL Server 2008 database to the WinHost database server. Simply right click on the database name in the Visual Studio 2010 Server Explorer, and select publish to provider in the pop up menu. This will launch the Database Publishing Wizard. The wizard will step you through the process of creating an SQL script, which will be used to re-create the database on WinHost remote server. 
</p>
<p>
    <asp:Image ID="ImagePublishDB" runat="server" CssClass="DeploymentImages" ImageUrl="Images/PublishDB.JPG"/>


</p>
<p>
Step 3: First add the database to the remote server at WinHost. This is done at the account management control panel. Use the MS SQL 2008 site tool on the control panel. In your local environment, use Microsoft SQL Server Management Studio to connect directly to the remote database server at WinHost. In Microsoft SQL Server Management studio, open the file containing the SQL script you created in step 2. Execute the script using the database on the remote server at WinHost. 
</p>
<p>
    <asp:Image ID="ImageDeployDB" runat="server"  CssClass="DeploymentImages" ImageUrl="Images/DeployDB.JPG"/>

</p>

</asp:Content>
